package com.shiyi.design.proxy;

/**
 * @author wangzhanshuai
 * @date 2021/2/5 8:11 下午
 * @since 1.0
 */
public class Client {

    public static void main(String[] args) {
//        Movable movable = new Car();
//        TimeStaticProxy timeStaticProxy = new TimeStaticProxy(movable);
//        LogStaticProxy logStaticProxy = new LogStaticProxy(timeStaticProxy);
//        logStaticProxy.move();

        Movable proxy = (Movable) new MyJdkProxy(new Car()).getProxy();
        proxy.move();
    }
}
